/**
 * 
 */
package t4j.generics;

import java.io.FileInputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.util.List;

/**
 * @author sz
 *
 * create time：2013-1-22
 */
public class NeedCasting {

	public void f() throws Exception{
		ObjectInputStream in = new ObjectInputStream(new FileInputStream(""));
		
		List<Widget> shapes = (List<Widget>) in.readObject();
	}
	
	public static void main(String[] args) {
		try {
			new NeedCasting().f();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
